////////////////////////////////////////////////////////////////////////////
    // example of custom renderer function

   var storeFjPre = new Ext.data.JsonStore({
        root: 'articles',
        fields: [
            'id', 'text'
        ],
        // load using script tags for cross domain, if the data in on the same domain as
        // this page, an HttpProxy would be better
        proxy: new Ext.data.HttpProxy({
            url: basePath+'/../prescription',
            doClass:'fjPre',
            preName:{fjId:fjId}
        })
    });
    storeFjPre.setDefaultSort('id', 'asc');

    function pctChange(val){

        var v = '</div><div style="word-wrap:break-word; overflow:hidden;" >' + val + '</div><div>';
     
        return v;
    }

    // create the Grid
    var gridFjPre = new Ext.grid.GridPanel({
        store: storeFjPre,
        shadow:true,
        autoScroll: true,
        border:false,
        columns: [
            {id:'AA',header: "条号", width: 90,sortable: true, dataIndex: 'id',menuDisabled:true},
            {header: "原文", width: 590, sortable: true, renderer:pctChange,id:'text', dataIndex: 'text',menuDisabled:true}
        ],
         iconCls:'icon-grid',
         autoHeight:true,
         bodyStyle:'width:100%;',
		 autoWidth:true,
		 height:Ext.get("fjPre_content").getHeight(),
		 autoExpandColumn:'text',
		 renderTo:'fjPre_content'
    });


    storeFjPre.load({params:{doClass:'fjPre',fjId:fjId}});